﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WordFun.Models
{
    /// <summary>
    /// Class for Point2D
    /// </summary>
    public class Point2D
    {
        //(x,y) of point 2D
        private double _x;
        private double _y;


        /// <summary>
        /// Default constructor of Point
        /// </summary>
        public Point2D()
        {
            _x = _y = 0;
        }

        /// <summary>
        /// Constructor of Point
        /// </summary>
        /// <param name="x">The left value</param>
        /// <param name="y">The top value</param>
        public Point2D(double x, double y)
        {
            _x = x;
            _y = y;
        }

        /// <summary>
        /// Get, set x value
        /// </summary>
        public double X
        {
            get
            {
                return _x;
            }
            set
            {
                _x = value;
            }
        }

        /// <summary>
        /// Get, set y value
        /// </summary>
        public double Y
        {
            get
            {
                return _y;
            }
            set
            {
                _y = value;
            }
        }

        /// <summary>
        /// Set X,Y value
        /// </summary>
        /// <param name="X">double</param>
        /// <param name="Y">double</param>
        public void SetXY(double X, double Y)
        {
            _x = X;
            _y = Y;
        }
    }
}
